package com.example.flower_shop.mapper;

import com.example.flower_shop.entity.RoleEntity;
import com.example.flower_shop.vo.role.RoleRespVO;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author FuerHeart
 * @description 针对表【sys_role】的数据库操作Mapper
 * @createDate 2024-11-06 17:23:18
 * @Entity com.example.motel_reservation.entity.RoleEntity
 */
public interface RoleMapper extends MPJBaseMapper<RoleEntity> {

    List<RoleRespVO> selectRoleByUserId(Long userId);

    boolean insertUserRoleRel(@Param("userId") Long userId, @Param("roleId") Long roleId);

    RoleEntity getRoleByUserId(@Param("userId") Long userId);

    List<String> selectRolesByUserId(Object userId);
}




